<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/11/7
  Time: 12:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/mb/jsp/common.jsp" %>
<%@ page import="com.limao.servlet.WebFunction" %>
<%@ page import="com.limao.DBDataClass.CrowdUserAuthClass" %>

<%
    String userid=CacheClass.isLogin(request,response);
    if (CacheClass.getIntValue(userid) == 0) {
        out.println("<script language='JavaScript'>alert('您还没有登陆！');location.href=document.referrer;</script>"); //后退并刷新
        return;
    }
    CrowdUserAuthClass user = WebFunction.getUserInfo(request, response);
    if (user == null) {
        out.println("<script language='JavaScript'>alert('用户不存在，或被平台禁用，请联系客服！');window.history.back(-1);</script>");
        return;
    }

    String rank = "未知";
    if (!TextUtils.isEmpty(user.rank)) {
        rank = user.rank;
    }
%>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>资产</title>
</head>
<body  ontouchstart="">
<div class="detailTop pf w100 of">
    <div class="w100 of tc c3 f18">
        <span class="pa" style="left: 5px;" onclick="javascript:history.back();"><img src="mb/images/top_back.png" style="margin-top: 4px;height: 40px;width: 40px;"/></span>
        资产
    </div>
</div>

<div class="container jz" style="padding-top: 41px;">
    <section class="propertyTop w100 bcf of">
        <div class="tc jz propertyTopTittle">
            <p class="f14 c3">累计收益</p>
            <p class="cff9933"><span style="font-size: 28px;"><%=user.totalbuyrmb%></span></p>
        </div>
        <table class="propertyTable">
            <tbody>
            <tr>
                <td class="cff9900 tc">
                    <p>
                        <span class="f12 c3">累计投入：</span>
                    </p>
                    <p>
                        <span class="f20"><%=user.totalbuyscore%></span>
                    </p>
                </td>

                <td class="cff9900 tc">
                    <p>
                        <span class="f12 c3">累计提现：</span>
                    </p>
                    <p>
                        <span class="f20"><%=user.totalwithinrmb%></span>
                    </p>
                </td>
            </tr>
            <tr>
                <td class="cff9900 tc">
                    <p>
                        <span class="f12 c3">盈亏率：</span>
                    </p>
                    <p>
                        <span class="f20"><%=user.rmbrate%></span>
                    </p>
                </td>

                <td class="cff9900 tc">
                    <p>
                        <span class="f12 c3">排名：</span>
                    </p>
                    <p>
                        <span class="f20"><%=rank%></span>
                    </p>
                </td>
            </tr>
            <tr>
                <td class="cff9900 tc">
                    <p>
                        <span class="f12 c3">团队：</span>
                    </p>
                    <p>
                        <span class="f20"><%=user.total_mannum%></span>
                    </p>
                </td>

                <td class="cff9900 tc">
                    <p>
                        <span class="f12 c3">排名：</span>
                    </p>
                    <p>
                        <span class="f20">暂无排名</span>
                    </p>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="w100 mgt10" style="margin-bottom: 18px;">
            <h4 class="c3 f16 w100 tc">可提现金额</h4>
            <div class="w100 clearfix of">
                <div class="fl mgt10" style="width: 50%">
                    <p class="c3 f14 tc">抵押金：</p>
                    <p class="cff9933 tc f20"><%=(user.principlelrmb)%></p>
                </div>
                <div class="fr mgt10" style="width: 50%">
                    <p class="c3 f14 tc">余额：</p>
                    <p class="cff9933 tc f20"><%=user.nowrmb %></p>
                </div>
            </div>
        </div>
    </section>
    <section class="propertyTop w100 bcf of mgt10">
        <table class="propertyTable2">
            <thead>
            <tr>
                <th class="cffcc33 tc" colspan="1"><span class="f13 c3">名称</span></th>
                <th class="cffcc33 tc" colspan="2"><span class="f13 c3">商城平台</span></th>
                <th class="cffcc33 tc" colspan="2"><span class="f13 c3">理财平台</span></th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td class="tc" colspan="1"><span class="f12 c6">抵押金：</span></td>
                <td class="c3 tc" colspan="2"><span class="f20">200,000.</span><span class="f16">00</span></td>
                <td class="c3 tc" colspan="2"><span class="f20">200,000.</span><span class="f16">00</span></td>
            </tr>
            <tr>
                <td class="tc" colspan="1"><span class="f12 c6">抵押金：</span></td>
                <td class="c3 tc" colspan="2"><span class="f20">0.</span><span class="f16">00</span></td>
                <td class="c3 tc" colspan="2"><span class="f20">0.</span><span class="f16">00</span></td>
            </tr>
            <tr>
                <td class="tc" colspan="1"><span class="f12 c6">余额：</span></td>
                <td class="c3 tc" colspan="2"><span class="f20">200,000.</span><span class="f16">00</span></td>
                <td class="c3 tc" colspan="2"><span class="f20">200,000.</span><span class="f16">00</span></td>
            </tr>
            <tr>
                <td class="tc" colspan="1"><span class="f12 c6">资产：</span></td>
                <td class="c3 tc" colspan="2"><span class="f20">200,000.</span><span class="f16">00</span></td>
                <td class="c3 tc" colspan="2"><span class="f20">200,000.</span><span class="f16">00</span></td>
            </tr>
            </tbody>
        </table>
    </section>
</div>
</body>
</html>
